package com.inyaa.web.blog.controller;


import com.inyaa.base.bean.BaseResult;
import com.inyaa.web.feign.InyaaAdminFeignService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/menu")
@RequiredArgsConstructor
public class InyaaSysMenuController {

    private final InyaaAdminFeignService inyaaAdminFeignService;

    @GetMapping("/list")
    public BaseResult<List<Object>> findMenuList() {
        return inyaaAdminFeignService.findMenuList(true);
    }

}
